<html><head><title>Print</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">Print()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>Print</b></font>(Text$)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Displays the specified 'Text$' in the console. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Text$</i></td>
<td width="90%"> 
The text to display. In <a href="enablegraphicalconsole.html">graphical mode</a> the length of the string can't 
excess the width of the console, otherwise the string will be truncated (have the end cut off). 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Remarks</b></p><blockquote>

In <a href="enablegraphicalconsole.html">graphical mode</a> it's possible to change the position with the function 
<a href="consolelocate.html">ConsoleLocate()</a>. To change the appearance of the string when it is printed, 
the function <a href="consolecolor.html">ConsoleColor()</a> should be used. 
<br>
<br>
The cursor will be moved to the next character after the end of the 
string that is printed. If you print over the right edge of the console the text will 
wrap around to the left edge on the next line down. If you print off the bottom of 
the console window, the console window will scroll its contents up. 
<br>
<br>
To output raw data on the non-graphical console (for pipe communication) <a href="writeconsoledata.html">WriteConsoleData()</a> 
can be used. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">If</font></b> <font color="#006666">OpenConsole</font>()
<font color="#006666">    Print</font>("This is quite a long string.")
<font color="#006666">    Print</font>("You see how this one joins onto the end of the previous one?")
<font color="#006666">    Print</font>("That is because the cursor moves to the end of the string and not onto a new line.")
<font color="#006666">    Print</font>("Hopefully the text will also have been wrapped by now.")

<font color="#006666">    PrintN</font>("")
<font color="#006666">    PrintN</font>("")
<font color="#006666">    PrintN</font>("Press return to exit")
<font color="#006666">    Input</font>()
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="printn.html">PrintN()</a>, <a href="input.html">Input()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=openconsole.html>OpenConsole()</a> - <a href=index.html>Console Index</a> - <a href=printn.html>PrintN()</a> ->

</body></html>